package com.qf.cardlikeboot.mapper;

import com.qf.cardlikeboot.entity.Card;

import java.util.List;

/**
* @author 钻五大人
* @description 针对表【card(名片表)】的数据库操作Mapper
* @createDate 2022-05-18 20:34:21
* @Entity com.qf.cardlikeboot.entity.Card
*/
public interface CardMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Card record);

    int insertSelective(Card record);

    Card selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Card record);

    int updateByPrimaryKey(Card record);

    // 查询所有
    List<Card> selectAllCard();

    // 查询单张
    Card selectOneCard(Integer id);

    // 用户喜欢的名片列表
    List<Card> selectByIdList(List<String> idList);



}
